package com.slh.touchandroid.receiver;

import com.slh.touchandroid.R;
import com.slh.touchandroid.service.TouchService;
import com.slh.touchandroid.utils.SharePreferenceUtils;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BootReceiver extends BroadcastReceiver {
	public BootReceiver() {
	}

	@Override
	public void onReceive(Context context, Intent intent) {
		if (SharePreferenceUtils.getPrefBoolean(context, context.getString(R.string.key_auto_launch), true)) {
			TouchService.startAndroidTouch(context);
		}
	}
}
